package com.niiwoo.civet.user.dao.mapper;

import com.niiwoo.civet.user.dao.entity.DataBackflowRetryTask;
import com.niiwoo.civet.user.enums.DataBackFlowRetryStatusEnum;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DataBackflowRetryTaskMapperExt extends DataBackflowRetryTaskMapper {
    List<DataBackflowRetryTask> listRetryTask( @Param("pageSize") Integer pageSize);

    /**
     * 批量更新状态
     * @param processStatusEnum
     * @param list
     * @return
     */
    int batchUpdateRetryTaskProcessStatus(@Param("processStatusEnum") DataBackFlowRetryStatusEnum processStatusEnum, @Param("list") List<DataBackflowRetryTask> list);
}